﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using iLangl.Customer;
using iLangl.Transport.Communication;
using iLangl.Transport;
using iLangl.Customer.Managers;
using iLangl.Security;

using iLangl.Plugin;
using iLangl.Customer.DNN.Configuration;

namespace iLangl.Customer.DNN
{
	public class BaseDNNManager
	{
		public BaseDNNManager()
		{
			IConfigurationManager configurationManager = ConfigurationManager;
		}

		IConfigurationManager configurationManager = null;
		protected IConfigurationManager ConfigurationManager
		{
			get
			{
				if (configurationManager == null)
				{
					ConfigurationFactory.Instance.Initialize(new DNNConfigurationFactory());
					configurationManager = ConfigurationFactory.Instance.CreateConfigurationManager();
				}

				return configurationManager;
			}
		}

		//Customer Facade
		CustomerFacade customerFacade = null;
		protected CustomerFacade CustomerFacade
		{
			get
			{
				return DNNConfigurationManager.Instance.CustomerFacade;
			}
		}
	}
}